 <#ftl encoding="UTF-8" />
        <form id="form_data" class="form__data_content">
            <!-- 单耗表 -->
            <div id="panelTop" style="position:relative; height:50px; border-bottom: 1px solid #ddd; background-color:#fff;">
                <div id="btnPanel_01" style="position:absolute; display:inline-block; top:12px; left: 8px; width:auto; padding:0px;">
                    <button type="button" name="_ButBack" id="ButBack" class="act__button" onclick="_InstancePageHeader.DoBack();"><i class="fa-all fa-1x fa-reply" style="margin-right:3px;"></i>返回</button>
                    <button type="button" name="_ButSave" id="ButSave" class="act__button act__save" onclick="_InstancePageHeader.Save();"><i class="fa-all fa-1x fa-save" style="margin-right:3px;"></i>保存</button>
                </div>
                <div id="rec_position" style="position:absolute; display:inline-block; right:80px; top:18px; width:auto;">
                    <span id="rec_cur_row">15</span> / <span id="rec_total_rows">15</span>
                </div>
                <div class="panel__toolbar" style="position:absolute; display:inline-block; top:12px; right:20px;">
                    <div class="panel__toolbar_item">
                        <button type="button" class="toolbar__button" name="_ButPrev" id="ButPrev" title="前一条" onclick="_InstancePageHeader.PrevRecord();"><i class="fa-all fa-1x fa-angle-left" style="margin-right:3px;"></i></button>
                    </div>
                    <div class="panel__toolbar_item" disabled="disabled">
                        <button type="button" class="toolbar__button" name="_ButNext" id="ButNext" title="后一条" onclick="_InstancePageHeader.NextRecord();"><i class="fa-all fa-1x fa-angle-right" style="margin-right:3px;"></i></button>
                    </div>
                </div>
            </div>
            <div class="data__table_wrapper">
                <table class="data__table">
                    <colgroup>
                        <col style="width: 7%;" />
                        <col style="width: 17%;" />
                        <col style="width: 7%;" />
                        <col style="width: 17%;" />
                        <col style="width: 7%;" />
                        <col style="width: 17%;" />
                        <col style="width: 7%;" />
                        <col />
                    </colgroup>
                    <tbody>
                        <tr>
                            <td class="td__label">
                                <label for="StyleNo">款号</label>
                            </td>
                            <td>
                                <input type="hidden" id="ProductId" name="ProductId" value="" />
                                <input type="text" id="StyleNo" name="_StyleNo" readonly="readonly" style="width:100%;" tabindex="1" />
                            </td>
                            <td class="td__label">
                                <label for="ProductName">产品名称</label>
                            </td>
                            <td>
                                <input type="text" id="ProductName" name="_ProductName" readonly="readonly" style="width:100%;" tabindex="2" />
                            </td>
                            <td class="td__label">
                                <label for="CustomerName">客户名称</label>
                            </td>
                            <td>
                                <input type="text" id="CustomerName" name="_CustomerName" readonly="readonly" style="width:100%;" tabindex="3" />
                            </td>
                            <td class="td__label">
                                <label for="DateOfFilling">填表日期</label>
                            </td>
                            <td>
                                <input type="text" id="DateOfFilling" name="_DateOfFilling" readonly="readonly" style="width:135px;" tabindex="4" />
                            </td>
                        </tr>
                        <tr>
                            <td class="td__label">
                                <label for="Description">备注</label>
                            </td>
                            <td colspan="3">
                                <input type="text" id="Description" name="_Description" tabindex="5" readonly="readonly" style="width:100%;" />
                            </td>
                            <td class="td__label">
                                <label for="Notes">注意事项</label>
                            </td>
                            <td colspan="3">
                                <input type="text" id="Notes" name="_Notes" tabindex="6" readonly="readonly" style="width:100%;" />
                            </td>
                        </tr>
                        <tr>
                            <td class="td__label" style="vertical-align:top; padding-top:8px;">
                                <label for="IcLabDipIndication">IC色样指示</label>
                            </td>
                            <td colspan="3">
                                <textarea class="area" id="IcLabDipIndication" name="_IcLabDipIndication" rows="3" tabindex="7" style="width:100%; height:54px; resize:none;"></textarea>
                            </td>
                            <td class="td__label" style="vertical-align:top; padding-top:8px;">
                                <label for="Notes">刺绣花边及其他物品单耗</label>
                            </td>
                            <td colspan="3">
                                <textarea class="area" id="EmbroideryLaceAndOther" name="_EmbroideryLaceAndOther" rows="3" tabindex="8" style="width:100%; height:54px; resize:none;"></textarea>
                            </td>
                        </tr>
                        <tr>
                            <td class="td__label">
                                <label for="DesignedByName">设计担当</label>
                            </td>
                            <td>
                                <input type="hidden" id="DesignedBy" name="_DesignedBy" value="" tabindex="9" />
                                <input type="text" id="DesignedByName" name="_DesignedByName" readonly="readonly" style="width:135px;" tabindex="9" />
                            </td>
                            <td class="td__label">
                                <label for="GradedByName">单耗员</label>
                            </td>
                            <td>
                                <input type="hidden" id="GradedBy" name="_GradedBy" value="" tabindex="10" />
                                <input type="text" id="GradedByName" name="_GradedByName" style="width:135px;" tabindex="10" readonly="readonly" />
                            </td>
                            <td class="td__label">
                                <label for="UpdatedByName">操作情况</label>
                            </td>
                            <td colspan="3">
                                <input type="text" id="UpdatedByName" name="_UpdatedByName" readonly="readonly" tabindex="11" value="<#if identityUser?exists>${identityUser.getEmployeeName()}</#if>"/ style="width:80px;">
                                <input type="text" id="UpdatedDate" name="_UpdatedDate" readonly="readonly" tabindex="12" style="width:80px;" />
                            </td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </form>

        <input id="Action" type="hidden" value="<#if action?exists>${action}<#else>0</#if>" />
        <input id="HeaderId" type="hidden" value="<#if bomId?exists>${bomId}<#else>0</#if>" />
        <input id="CatalogueId" type="hidden" value="<#if nodeId?exists>${nodeId}<#else>0</#if>" />
        <input id="QuotedFlag" type="hidden" value="" />
        <input id="MrpStatus" type="hidden" value="" />
        
        <!-- 明细部分 -->
        <div id="panelSlave" style="position:relative; top:0px;">
            <!-- 折叠标记 -->
            <div id="hPanelSplitter" title="隐藏主表"><i class="fa-all fa-angle-double-up"></i></div>
            <!-- 明细内容 -->
            <ul id="tabPanelHeader" class="tabstrip" style="top:0px; width:100%">
                <li id="menu_01" class="tabInactive" style="margin-left:25px;">
                    <div>
                        <span class="tab_stretch"><span class="tabtext"><abbr class="ls_01">单耗表明细</abbr></span></span>
                    </div>
                </li>
            </ul>
            <div id="tabPanelData" class="tab__wrapper" style="top:0px; height:auto;">
                <div id="tabWrapper_01" class="tab__content" style="padding-top:5px; width:100%;">
                    <div id="panelSlaveButton_01" style="clear:both; position:relative; top:3px; padding-left:8px; z-index:+1;">
                        <button type="button" name="_ButSaveLines" id="ButSaveLines" class="act__button act__save" onclick="_InstancePageLines.SaveLines();"><i class="fa-all fa-1x fa-save" style="margin-right:3px;"></i>保存明细</button>
                        <button type="button" name="_ButClearPieceYardage" id="ButClearPieceYardage" class="act__button act__save" onclick="_InstancePageLines.DoClearPieceYardage();"><i class="fa-all fa-1x fa-eraser" style="margin-right:5px;"></i>清空单耗</button>
                        <button type="button" name="_ButEditProductSize" id="ButEditProductSize" class="act__button act__save" onclick="_InstancePageLines.EditProductSize();">编辑成品尺码</button>
                        <button type="button" name="_ButSyncRowsData" id="ButSyncRowsData" class="act__button act__save" onclick="_InstancePageLines.SyncRowsData();" style="margin-left:27px;">同步填写当前行其他尺码单用量</button>
                    </div>
                    <div id="panelSlaveData_01" style="position:relative; top:10px; margin:0 8px;">
                        <table id="tabLinesList" style="width:100%;">
                            <tr>
                                <td style="overflow:hidden; width:802px;">
                                    <div id="divH11" style="overflow:hidden; border:none;">
                                        <table id="tabHeader11" class="layout display" style="width:100%;">
                                            <colgroup>
                                                <col style="width: 27px;" />
                                                <col style="width: 30px;" />
                                                <col style="width: 160px;" />
                                                <col style="width: 80px;" />
                                                <col style="width: 200px;" />
                                                <col style="width: 160px;" />
                                                <col style="width: 110px;" />
                                                <col style="width: 35px;" />
                                            </colgroup>
                                            <thead>
                                                <tr>
                                                    <th>
                                                       <label class="btn" for="CheckAll" style="margin-left:3px;"><input id="CheckAll" type="checkbox" onclick="_InstancePageLines.DoCheckAll($(this),'_check_row');" /><i></i><span></span></label>
                                                    </th>
                                                    <th style="text-align:center;">#</th>
                                                    <th>材料名</th>
                                                    <th>供应商</th>
                                                    <th>用料部位</th>
                                                    <th>料号</th>
                                                    <th>规格</th>
                                                    <th style="text-align:center;">单位</th>
                                                </tr>
                                            </thead>
                                        </table>
                                    </div>
                                </td>
                                <td style="position:relative;">
                                    <div id="divH12" class="header__with__margin">
                                        <table id="tabHeader12" class="layout display" style="margin-left:-1px; width:100%;">
                                            <colgroup>
                                                <col style="width: 60px;" />
                                                <col style="width: 60px;" />
                                                <col style="width: 60px;" />
                                                <col style="width: 50px;" />
                                                <col style="width: 400px;" />
                                            </colgroup>
                                            <thead>
                                                <tr>
                                                    <th class="edit__column">客户用量</th>
                                                    <th class="edit__column">工厂用量</th>
                                                    <th class="edit__column">套裁用量</th>
                                                    <th style="text-align:center;">单位</th>
                                                    <th>备注</th>
                                                </tr>
                                            </thead>
                                        </table>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td style="vertical-align:top; width:802px;">
                                    <div id="divD11" class="grid__data_wrapper" style="border:none; border-bottom:1px solid #c6c3bd; overflow:hidden;">
                                        <table id="tabData11" class="responsive__table dragable__table" style="margin-top:-1px;">
                                            <colgroup>
                                                <col style="width: 27px;" />
                                                <col style="width: 30px;" />
                                                <col style="width: 160px;" />
                                                <col style="width: 80px;" />
                                                <col style="width: 200px;" />
                                                <col style="width: 160px;" />
                                                <col style="width: 110px;" />
                                                <col style="width: 35px;" />
                                            </colgroup>
                                            <tbody></tbody>
                                        </table>
                                    </div>
                                </td>
                                <td class="with__border__lines" style="vertical-align:top; width:100%;">
                                    <div id="divD12" class="grid__data_wrapper" style="overflow:scroll;" onscroll="_InstancePageLines.ScrollTo();">
                                        <table id="tabData12" class="responsive__table dragable__table" style="margin-top:-1px; margin-left:-1px; border-bottom:1px solid #c6c3bd; width:100%;">
                                            <colgroup>
                                                <col style="width: 60px;" />
                                                <col style="width: 60px;" />
                                                <col style="width: 60px;" />
                                                <col style="width: 50px;" />
                                                <col style="width: 400px;" />
                                            </colgroup>
                                            <tbody></tbody>
                                        </table>
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
            </div>
        </div>
